﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="ManagementService.aspx.cs" Inherits="Service1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

    <div class="child-main">
    <div class="top-main">
    <div class="title">Service  </div>
    
      <div class="search_form">
     <asp:TextBox ID="txtSearch" runat="server">Seach word</asp:TextBox>
     <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Search" />
     </div><div class="link-top-right">
            <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Delete" />
            <asp:Button ID="Button2" runat="server" PostBackUrl="~/Admin/AddService.aspx" 
                Text="Add" onclick="Button2_Click" />
            <asp:Label ID="Label10" runat="server" Text="Label" Visible="False"></asp:Label>
        </div>
     </div>
    <div class="content">
   
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderStyle="None" 
        CellPadding="4" DataKeyNames="ServiceCategoryID" OnDataBound="GridView1_DataBound" 
        OnRowCancelingEdit="GridView1_RowCancelingEdit" 
        OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting" 
        OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" 
        OnSelectedIndexChanged="GridView1_SelectedIndexChanged" ShowFooter="True" 
        style="margin-right: 10px; margin-top: 0px;margin-left:10px;" Width="744px" ClientIDMode="Static" 
                Height="50px" AllowPaging="True" PageSize="6" 
                onpageindexchanging="GridView1_PageIndexChanging">
    <Columns>
        <asp:TemplateField>
           <FooterTemplate>
                <asp:ImageButton ID="imgbDelAll" runat="server" Height="32px" 
                    ImageUrl="./images/1389707235_delete_64.png" OnClick="imgbDelAll_Click" 
                    Width="31px" />
            </FooterTemplate>
            <HeaderTemplate>
                <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="True" 
                    OnCheckedChanged="ckAll_CheckedChanged" />
            </HeaderTemplate>
            <ItemTemplate>
                <asp:CheckBox ID="ckDel" runat="server" />
            </ItemTemplate>
            <ItemStyle Width="1px" />
        </asp:TemplateField>
        <asp:BoundField DataField="ServiceCategoryID" HeaderText="ID" ReadOnly="True" >
        <ItemStyle Width="10px" />
        </asp:BoundField>
        <asp:TemplateField HeaderText="Image">
            <ItemTemplate>
                <asp:Image ID="Image2" runat="server" Height="78px" 
                    ImageUrl='<%# "images/"+ Eval("UrlImage") %>' Width="100%" />
            </ItemTemplate>
            <ItemStyle Width="120px" />
        </asp:TemplateField>
        <asp:BoundField DataField="ServiceName" HeaderText="Name" >
        <ItemStyle Width="140px" />
        </asp:BoundField>
        <asp:BoundField DataField="SecurityDeposit" HeaderText="SecurityDeposition" >
        <ItemStyle Width="20px" />
        </asp:BoundField>
        <asp:TemplateField HeaderText="Edit">
            <ItemTemplate>
                <asp:HyperLink ID="HyperLink4" runat="server" 
                    NavigateUrl='<%# "EditService.aspx?id="+ Eval("ServiceCategoryID") %>' 
                    Text='<%# "Edit" %>'></asp:HyperLink>
            </ItemTemplate>
            <ItemStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Delete">
            <ItemTemplate>
                <asp:ImageButton ID="imgbDel" runat="server" CommandName="delete" Height="24px" 
                    ImageUrl="./images/1389709280_001_05.png" Width="29px" />
            </ItemTemplate>
            <ItemStyle Width="1px" />
        </asp:TemplateField>
    </Columns>
    <HeaderStyle Font-Bold="True" ForeColor="Black" BorderStyle="None" BorderWidth="0px" 
                    Height="5px" />
    <PagerStyle BackColor="#FEFEFE" ForeColor="Red" HorizontalAlign="Left" />
    <RowStyle BackColor="White" />
    <SelectedRowStyle Font-Bold="True" />
                <SortedAscendingCellStyle BackColor="#EDF6F6" />
    <SortedDescendingCellStyle BackColor="#D6DFDF" />
</asp:GridView>
    </div>
    </div>

</asp:Content>

